package org.celery.modules.ticket.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * ShopStaticsDayDTO
 *
 * @author luoqc
 */
@Data
@ColumnWidth(25)
@HeadRowHeight(20)
@ContentRowHeight(18)
public class CustomTicketExcel implements Serializable {
	private static final long serialVersionUID = 1L;

	@ColumnWidth(30)
	@ExcelProperty("店铺名称")
	private String shopName;

	@ColumnWidth(30)
	@ExcelProperty("订单号")
	private String ticketNumber;

	@ColumnWidth(30)
	@ExcelProperty("出售价格")
	private BigDecimal salePrice;

	@ColumnWidth(30)
	@ExcelProperty("采购价格")
	private BigDecimal purchasePrice;

	@ColumnWidth(30)
	@ExcelProperty("差价")
	private BigDecimal differencesPrice;

	@ColumnWidth(30)
	@ExcelProperty("利润")
	private BigDecimal profit;

	@ColumnWidth(30)
	@ExcelProperty("利润率")
	private Double profitRate;

	@ColumnWidth(30)
	@ExcelProperty("商家订单号")
	private String outTradeNo;

	@ColumnWidth(30)
	@ExcelProperty("日期")
	private String date;

	@ColumnWidth(50)
	@ExcelProperty("是否退款（0 = 未退款, 1= 退款）")
	private Integer isRefund;

	@ColumnWidth(30)
	@ExcelProperty("备注")
	private String remark;

}
